import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/statisticis',
  component: Layout,
  redirect: '/statisticis/index',
  name: 'statisticis',
  meta: {
    title: '业绩统计',
    icon: 'iconoir:stats-up-square',
  },
  children: [
    {
      path: 'index',
      name: 'statisticisIndex',
      component: () => import('@/views/statisticis/index.vue'),
      meta: {
        title: '业绩统计',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/statisticis',
      },
    },
  ],
}

export default routes
